import util_socket
from ..tlv import tlv_parser_hw

data = {"type": 3, "serial_no": 22080, "user_ip": "192.168.1.193",
        "attr": {"username": "zyt", "password": "123456"}, "secret": "123456789"}
tb = tlv_parser_hw.TlvBuilder(data)
data_package = tb.build_data()
service_info = {"ip": "192.168.1.199", "port": 2000}
sender = util_socket.SocketUtils()
result = sender.socket_client(service_info, data_package)
print(result)
